#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
  int i, pid; 
  
  pid = 0;
  for (i = 0; i < 3; i++) {
    pid = fork();
    if (pid == 0)
      printf("pid:%d\n", getpid());
  }
  return 0;
}
